package com.lkei.service.impl;

import com.lkei.dao.DepartmentDAO;
import com.lkei.entity.Department;
import com.lkei.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentDAO departmentDAO;

    @Override
    public List<Department> findAll() {
        return departmentDAO.findAll();
    }
}
